package lab01;

public class Test13 {
    public static void main(String[] args) {
        int i;
        int hundred;
        int ten;
        int bits;
        System.out.println("水仙花数有：");
        for (i=1;i<1000;i++){
            hundred =i/100;
            ten=i%100/10;
            bits =i%10;
            if(i==hundred*hundred*hundred+ten*ten*ten+bits*bits*bits)
                System.out.print(i + "    ");
        }
    }

}
